Integration Testing

Because all interaction in our system only occurs through the GUI, integration testing was done manually rater than by script.

Test: Successfully create user account
	
	Affects: Database
	-New entry is added to users_stats to indicate this new player

Test: Attempt to make account with taken username
	
	Affects: Registration page
	-Error message given

Test: Succesfully place order
	
	Affects: Database
	-New entry is added to portfolio_data indicating trade operation
	-User balance in user_stats is adjusted as appopriate

Test: Place order with invalid funds

	Affects: Buy page
	-Error message is generated

Test: Display valid ticker

	Affects: Buy page
	-Live feed of ticker price and buy interface are presented

Test: Attempt to display Invalid ticker

	Affects: Buy page
	-Error message generated

Test: Login as valid user

	Affects: Website homepage
	-access to privaleged web pages is granted

Test: Login as invalid user
	
	Affects: website homepage
	-Error message returned

UNIT TEST:




THIS UNIT TEST TARGETS THE API ENDPOINT. Testing is done through embedded javascript in HTML. To utilize the test, make sure the target_endpoint.php is located in the root folder of the DRUPAL installation. Otherwise, change the target to the designated file path for the API ENDPOINT. 

This UNIT TEST logs OUTPUT to the DEVELOPER CONSOLE. ON Success, it should return 3 results with values 1 for success. A result with no value is a failure.